package com.wd.config;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.apache.log4j.helpers.LogLog;

import com.wd.util.PathUtil;

/**
 * @author long
 * @date 2013-5-4 下午2:37:01
 * @qq 108232706
 * @description ConfigTest
 */
public class ConfigTest {
	private static final Logger logger = LogManager.getLogger(ConfigTest.class);

	public static void main(String[] args) {
		logger.info("=======");
	}

	public static void main1(String[] args) {

		//		PropertyConfigurator.configure("conf/log4j.properties");
		String[] files = new String[] { "conf/log4j.properties", "e:\\conf\\log4j.properties", "conf/log4j.properties", "log4j", "log4j.pm4" };
		String filename;
		for (int i = 0; i < files.length; i++) {
			System.out.println("getFileNameWithoutExtend:" + PathUtil.getFileNameWithoutExtend(files[i]));
			System.out.println(PathUtil.getFileName(files[i]));
			LogLog.error("");
		}
		//		logger.debug("hello");
		System.out.println("111");
	}
}
